﻿using System;
using System.Collections.Generic;
using CRM.Core.DataInterfaces;
using CRM.Core.Entities;
using StructureMap;

namespace CRM.Core.DomainClasses
{
    public class Customer
    {
        public IList<CustomerEntity> Get(params object[] parmeters)
        {
            return ObjectFactory.GetInstance<ICustomerRepository>().Get(parmeters);
        }

        //For any other bussiness logic. Here take an e.g. you're fetching filtered customers.
        public IList<CustomerEntity> GetFilteredCustomer(params object[] parmeters)
        {
            return ObjectFactory.GetInstance<ICustomerRepository>().GetFilteredCustomers(parmeters);
        }
    }
}